package org.bookie.framework.components;

import org.apache.tapestry.engine.ExternalServiceParameter;
import org.apache.tapestry.engine.ILink;
import org.bookie.framework.CommonBaseComponent;
import org.bookie.model.User;

public abstract class UserTableComponent extends CommonBaseComponent {
	
	/**
	 * Get the current {@link User} of the iteration
	 * @return instance of User
	 */
	public abstract User getCurrentUser();
	
    public ILink getUserLink(User user){
    	return getExternalService().getLink(false,
				new ExternalServiceParameter("UserDetails",
						new Object[] { user.getId() }));
    }
}
